package com.prjsystem.dao.impl;

import java.util.List;

import com.prjsystem.dao.BaseDao;
import com.prjsystem.dao.DailyWorkSearchDao;
import com.prjsystem.entity.Daily;
import com.prjsystem.entity.DailyWorkBean;
import com.prjsystem.entity.UserInfo;
import com.prjsystem.entity.WorkRequestDetail;

public class DailyWorkSearchDaoImpl extends BaseDao implements DailyWorkSearchDao{
	@SuppressWarnings("unchecked")
	public List<UserInfo> searchalluser() {

		return excuteQueryForstring("role.getAllUser");
	}
	
	@SuppressWarnings("unchecked")
	@Override
	public List<Daily> searchDaily(DailyWorkBean dailyWorkBean) {
		return excuteQueryForList("DW.searchDwinfoOfDailyWork", dailyWorkBean.getDaily());
	}
	
	@SuppressWarnings("unchecked")
	@Override
	public List<WorkRequestDetail> searchdwrinfo(DailyWorkBean dailyWorkBean) {
		return excuteQueryForList("DW.searchWrinfoByDailyWork", dailyWorkBean.getDaily());
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Daily> searchDailyByDate(DailyWorkBean dailyWorkBean) {
		// TODO Auto-generated method stub
		return excuteQueryForList("DW.searchDailyByDate", dailyWorkBean);
	}
}
